import request from '@/utils/request'
//查询
export const landresourceinfoGetService = () => {
  return request.get('adminlandresource/search')
}
//添加
export const landReinfoAddService = ({
  id,
  name,
  address,
  parcelcount,
  userid,
  owner
}) => {
  return request.post('adminlandresource/add', {
    id,
    name,
    address,
    parcelcount,
    userid,
    owner
  })
}
//更新
export const landReinfoUpService = ({
  id,
  name,
  address,
  parcelcount,
  userid,
  owner
}) => {
  return request.put('adminlandresource/up', {
    id,
    name,
    address,
    parcelcount,
    userid,
    owner
  })
}
//删除
export const landresourceinfoDlService = (id) => {
  return request.delete('adminlandresource/delete', {
    params: { id }
  })
}
